/**
 * @create 2022-04-17
 * @desc interface
 */
import { Omit } from 'react-router';
import { TableColumnType, TableProps } from 'antd';

export type TableCompColumnProps<T> = Omit<TableColumnType<T>, 'dataIndex'> & {
  dataIndex?: keyof T;
};

export interface TableProProps<T extends Record<string, any>>
  extends Omit<TableProps<T>, 'columns'> {
  columns: TableCompColumnProps<T>[];
}
